package jy.hibernate.beans;
/**
 * porter_workload entity
 * @author tingzi
 *
 */
public class Porter_workload implements java.io.Serializable{
	private static final long serialVersionUID = 6381795977541260341L;
   //Fields 
	private Integer porter_workid;//自增长id
	private Porter_info Porter_info;//搬运工信息
	private Order_form order_form;//出入库单
	private Integer num=0;//商品数量
	private Product_information product;//商品
	private Integer is_paid=0;//是否已结清 0为未结清 1为结清 默认为0
	public Porter_workload(Porter_info porter_info, Order_form order_form,
			Integer num, Product_information product, Integer is_paid) {
		super();
		Porter_info = porter_info;
		this.order_form = order_form;
		this.num = num;
		this.product = product;
		this.is_paid = is_paid;
	}
	public Integer getPorter_workid() {
		return porter_workid;
	}
	public void setPorter_workid(Integer porter_workid) {
		this.porter_workid = porter_workid;
	}
	public Porter_info getPorter_info() {
		return Porter_info;
	}
	public void setPorter_info(Porter_info porter_info) {
		Porter_info = porter_info;
	}
	public Order_form getOrder_form() {
		return order_form;
	}
	public void setOrder_form(Order_form order_form) {
		this.order_form = order_form;
	}
	public Integer getnum() {
		return num;
	}
	public void setnum(Integer num) {
		num = num;
	}
	public Product_information getProduct() {
		return product;
	}
	public void setProduct(Product_information product) {
		this.product = product;
	}
	public Integer getIs_paid() {
		return is_paid;
	}
	public void setIs_paid(Integer is_paid) {
		this.is_paid = is_paid;
	}
	@Override
	public String toString() {
		return "Porter_info:"+Porter_info.getP_number()+"/torder_form:"+order_form.getOrder_number()
		        +"/tnum:"+num+"/tproduct:"+product.getPro_name();
	}


}
